﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        { // Вывод на печать чисел, кратных 3 и некратных 5.
           
           for (int j = 35; j <= 87; j++)
            {
                int a = j / 7;
                int jRestored = a*7 + 1;
                
                if (j == jRestored)
                {
                    Console.WriteLine(j);
                }

                int b = j / 7;
                int jjRestored = a * 7 + 2;

                if (j == jjRestored)
                {
                    Console.WriteLine(j);
                }
                
               int c = j / 7;
                int jjjRestored = a * 7 + 5;

                if (j == jjjRestored)
                {
                    Console.WriteLine(j);
                }


            }
        }

    }
}
